@extends('admin.layout')
@section('content')
 <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                首页轮播图设置
                <small>：</small>
            </h1>
            
        </section>

        <!-- Main content -->
        <section class="content">
        <ul class="timeline">
            <li>
                  <i class="fa fa-camera bg-purple"></i>
                  <div class="timeline-item">
                    @if(session('info'))
                            <div class="alert alert-success alert-dismissable">
                                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                                <h4><i class="icon fa fa-warning"></i> 警告!</h4>
                                 <ul>
                                    {{ session('info') }}
                                 </ul>
                                </div>                              
                            @endif  
                    <h3 class="timeline-header">最多设置4张大图显示(注意：只支持jpg格式,最佳尺寸1349*370)</h3>
                    <div class="timeline-body" style="height: 200px;">
                            <!-- 第一张大图 -->
                             <form action="{{ url('/admin/bigpic/addfirst') }}" class="col-md-3" enctype="multipart/form-data" method="post">   
                             {{ csrf_field() }}                         
                                <img style="width: 200px;height: 60px;" src="{{ url('/hom/index/imgs/d1.jpg ') }}" alt="..." class="margin">
                                <input type="file" class="btn-sm" name="img1" value="{{ old('img1') }}">
                                <input type="submit" value="上传" style="margin-left: 10px;">
                            </form>
                            <!-- 第二张大图 -->
                             <form action="{{ url('/admin/bigpic/addsecond') }}" class="col-md-3" enctype="multipart/form-data" method="post">   
                             {{ csrf_field() }}                         
                                <img style="width: 200px; height: 60px;" src="{{ url('/hom/index/imgs/d2.jpg ') }}" alt="..." class="margin">
                                <input type="file" class="btn-sm" name="img2" value="{{ old('img2') }}">
                                <input type="submit" value="上传" style="margin-left: 10px;">
                            </form>
                            <!-- 第三张大图 -->
                             <form action="{{ url('/admin/bigpic/addthird') }}" class="col-md-3" enctype="multipart/form-data" method="post">   
                             {{ csrf_field() }}                         
                                <img style="width: 200px; height: 60px;" src="{{ url('/hom/index/imgs/d3.jpg ') }}" alt="..." class="margin">
                                <input type="file" class="btn-sm" name="img3" value="{{ old('img3') }}">
                                <input type="submit" value="上传" style="margin-left: 10px;">
                            </form>
                            <!-- 第四张大图 -->
                             <form action="{{ url('/admin/bigpic/addfourth') }}" class="col-md-3" enctype="multipart/form-data" method="post">   
                             {{ csrf_field() }}                         
                                <img style="width: 200px; height: 60px;" src="{{ url('/hom/index/imgs/d4.jpg ') }}" alt="..." class="margin">
                                <input type="file" class="btn-sm" name="img4" value="{{ old('img4') }}">
                                <input type="submit" value="上传" style="margin-left: 10px;">
                            </form>
                             
                        
                        
                        
                      
                    </div>
                  </div>
                </li>
        </ul>
        </section><!-- /.content -->
    </div><!-- /.content-wrapper -->

@endsection